<?php
class Constants
{
    public static $ERR_SUCCESS = array('errno' => '0', 'errmsg' => '操作成功');
    public static $ERR_FAILED = array('errno' => '-2', 'errmsg' => '系统错误，请稍后重试!');
    public static $ERR_UNKNOWN = array('errno' => '-4', 'errmsg' => '未知错误');
    
    public static $ERR_MISSING_PARAMS = array('errno' => '-101', 'errmsg' => '缺少参数');
    public static $ERR_INVALID_PARAMS = array('errno' => '-102', 'errmsg' => '无效参数');
    
    public static $ERR_LOGIN_FAILED = array('errno' => '-201', 'errmsg' => '用户名或密码错误！');
    public static $ERR_ADD_FAILED_FOR_USER_EXIST = array('errno' => '-202', 'errmsg' => '添加失败，该用户名已被使用，请更换用户名！');

    public static $ERR_MACHINE_EXIST = array('errno' => '-301', 'errmsg' => '该机器已经添加过了！');
    public static $ERR_QUERY_MACHINE_NOT_EXIST = array('errno' => '-302', 'errmsg' => '查询的机器不存在！');
    
    public static $ERR_ORDER_SHIPPED = array('errno' => '-401', 'errmsg' => '该订单已被标记为发货状态！');
    public static $ERR_QUERY_ORDER_NOT_EXIST = array('errno' => '-302', 'errmsg' => '查询的订单不存在！');
    public static $ERR_ORDER_SHIPPED_CANOT_MODIFY = array('errno' => '-302', 'errmsg' => '该订单已被标记为发货状态，不能修改！');
    
    public static $ERR_ADD_FAILED_FOR_EXPRESS_EXIST = array('errno' => '-401', 'errmsg' => '添加失败，该快递公司已经添加过了！');
    public static $ERR_MODIFY_FAILED_FOR_EXPRESS_EXIST = array('errno' => '-401', 'errmsg' => '修改失败，该快递公司已在系统中了！');
}
?>